package com.backend.mapper;

import com.backend.common.AddAction;
import com.backend.common.AssAdminUpdateInfor;
import com.backend.common.GetAssActionCond;
import com.backend.config.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AssAdminMapper {

    Map<String,String> getAssNameById(@Param("assId") String assId);

    Map<String,String> getAssById(String assId);

    Integer insertIntoAction(AddAction addAction);

    Integer deleteAssImageById(String assId);

    List<Map<String,String>> getAllAssAction();

    Integer updateAssInforAdmin(AssAdminUpdateInfor assAdminUpdateInfor);

    Integer passUserAddAction(@Param("stuId")String stuId,@Param("status")String status,@Param("actionId")String action);

    Integer insertActionImage(@Param("actionId")String actionId,@Param("imageName") String imageName);

    List<Map<String,String>> getActionStudentBuId(String actionId);

    List<Map<String,String>> getAssActionByCond(GetAssActionCond getAssActionCond);

    Integer insertAssImages(@Param("filename") String filename,@Param("Id") String Id);

}
